package com.imooc.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 稻草人 on 2018/6/16.
 * 一个controller控制器
 * @RestController是@ResponseBody和@Controller的统写
 */
@RestController
public class Hello {

    @RequestMapping(value="/hello",method = RequestMethod.GET)
    public String hello(){
        return "hello springboot";
    }



}
